var dbserver=require('../dao/dbserver')
const jwt=require('../dao/jwt')

exports.singIn=(req,res)=>{
    let {data,pwd}=req.body
    console.log(data,pwd);
    // console.log(req.body,'req.body');
    dbserver.userMatch(data,pwd,res)
}

//验证token 31
exports.test=(req,res)=>{
    let token=req.body.token
    // console.log(token,'token');
    let result=jwt.verifyToken(token)
    res.send({status:200,result})
}